import Vue from 'vue'
import VueRouter from 'vue-router'
// import HelloWorld from '../components/HelloWorld'
// import StudyRouter from '@/components/StudyRouter'
// import Base from '@/components/Base'
// import Http from '@/components/Http'
import Home from '@/container/Home'
import Mine from '@/container/Mine'
import Order from '@/container/Order'
import ShoppingCart from '@/container/ShoppingCart'
import notFound from '@/container/notFound'
import copyright from '@/components/copyright'



Vue.use(VueRouter)

// 创建路由
export default new VueRouter({
  linkActiveClass:'active',
  routes:[
  {
    path:'/',
    // name:'HelloWorld',
    // component:HelloWorld
    redirect:'/home'
  },
  {
    path:'*',
    component:notFound
  },
  {
    path:'/home',
    name:'Home',
    component:Home,
    // children:[{
    //   path:'base',
    //   component:Base
    // },
    // {
    //   path:'http',
    //   component:Http
    // }]
  },
  {
    path:'/mine',
    name:'Mine',
    component:Mine
  },
  {
    path:'/order',
    name:'Order',
    component:Order
  },
  {
    path:'/shoppingCart',
    name:'ShoppingCart',
    component:ShoppingCart
  }
]
})